package com.dhq.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dhq.entity.BaseUser;
import com.dhq.service.BaseUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gf
 * @since 2020-03-05
 */
@RestController
@RequestMapping("/baseUser")
public class BaseUserController {
    @Autowired
    private BaseUserService baseUserService;

    @GetMapping("/list")
    public List<BaseUser> list(HttpServletRequest request){
        QueryWrapper<BaseUser> queryWrapper=new QueryWrapper<>();
        List<BaseUser> list = baseUserService.list(queryWrapper);
        return list;
    }
}

